package com.online.teaching.module.admin.course.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @ClassName : CourseAddDTO  //类名
 * @Description :   //描述
 * @Author : YG  //作者
 * @Date: 2020-11-05 00:55  //时间
 */
@Data
public class CourseAddDTO {
    @ApiModelProperty(value = "课程编号，应该由教务系统给出")
    @NotNull(message = "请输入正确的课程编号")
    private Integer courseNum;

    @ApiModelProperty(value = "课程中文名")
    @NotNull(message = "请输入正确的课程中文名")
    private String courseChName;

    @ApiModelProperty(value = "课程英文名")
    private String courseEnName;

    @ApiModelProperty(value = "课程学分,前端需要乘以10传过来")
    @NotNull(message = "请输入正确的学分：前端要乘10")
    private Integer courseCredit;

    @ApiModelProperty(value = "课程学时")
    @NotNull(message = "请输入正确的学时")
    private Integer coursePeriod;

    @ApiModelProperty(value = "0表示未认证，1表示必修课，2表示专业选修课，3表示非专业选修课")
    @NotNull(message = "请输入正确的课程类型")
    private Integer courseType;
}
